<?php
// +----------------------------------------------------------------------------
// | Tke团队版权所属 [三十年河东三十年河西,莫欺少年穷.!]
// +----------------------------------------------------------------------------
// | Copyright (c) 2014 http://www.itdaodan.com All rights reserved.
// +----------------------------------------------------------------------------
// | Author: PHP@妖孽 <dino_ma@163.com>
// +----------------------------------------------------------------------------
/**
 *@todo 活动模型
 +------------------------------------------------------------------------------
 * @version   1.0
 * @since 2015-7-13
 +------------------------------------------------------------------------------
 */
namespace Admin\Model;
use Think\Model\ViewModel;
class SaleGoodsViewModel extends ViewModel{
	
	public $viewFields = array(
		'activity'=>array('activity_name','activity_id','_type'=>'LEFT'),
		'shop_goods_activity'=>array('update_time','goods_activity_id','status', '_on'=>'activity.activity_id=shop_goods_activity.activity_id','_type'=>'LEFT'),
		'shop_goods'=>array('goods_name', '_on'=>'shop_goods.goods_id=shop_goods_activity.goods_id','_type'=>'LEFT'),
		'shop_goods_promotion'=>array('promotion_price', '_on'=>'shop_goods_promotion.goods_id=shop_goods_activity.goods_id','_type'=>'LEFT'),
		'member'=>array('member_name', '_on'=>'member.uid=shop_goods_activity.member_id','_type'=>'LEFT')
	);
}